﻿// Copyright 2009 Mike Geise
// 
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// 
//     http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Falcon.Core.Domain.Services
{
	using System.Collections.Generic;
	using Falcon.Core.Domain.Values;

	/// <summary>
	/// Language Repository Definition
	/// </summary>
	public interface ILanguageService
	{
		/// <summary>
		/// Gets the language by id.
		/// </summary>
		/// <param name="id">The id.</param>
		Language GetById(int id);

		/// <summary>
		/// Get all the languages.
		/// </summary>
		IList<Language> GetAll();

		/// <summary>
		/// Creates the language.
		/// </summary>
		Language Create();

		/// <summary>
		/// Inserts the language into the storage.
		/// </summary>
		/// <param name="language">The <see cref="Language"/>.</param>
		void Insert(Language language);

		/// <summary>
		/// Inserts the specified language.
		/// </summary>
		/// <param name="language">The language.</param>
		/// <param name="value">The value.</param>
		void Insert(Language language, LanguageCreate value);

		/// <summary>
		/// Updates the specified language.
		/// </summary>
		/// <param name="language">The <see cref="Language"/>.</param>
		void Update(Language language);

		/// <summary>
		/// Updates the specified language.
		/// </summary>
		/// <param name="language">The language.</param>
		/// <param name="value">The value.</param>
		void Update(Language language, LanguageUpdate value);

		/// <summary>
		/// Deletes the specified language.
		/// </summary>
		/// <param name="language">The <see cref="Language"/>.</param>
		void Delete(Language language);
	}
}